include $(TOPDIR)/rules.mk

PKG_NAME:=self
PKG_VERSION:=0.0.0
PKG_RELEASE:=1

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=git@gitee.com:yunsangc/self.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=HEAD
PKG_BUILD_DIR:=$(BUILD_DIR)/self-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk

define Package/self
  SECTION:=base
  CATEGORY:=Utilities
  DEFAULT:=y
  TITLE:=yunsangc self c 
  URL:=http://gitee.net/
endef

define Package/self/description
  AIRCTL C 
endef

define Build/Compile/self
	$(MAKE)
endef

define Package/self/install
	$(INSTALL_DIR) $(1)/usr/sbin
	$(INSTALL_DIR) $(1)/etc/self
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/self $(1)/usr/sbin/
endef

$(eval $(call BuildPackage,self))
